from Data import Server
from fastapi import FastAPI
import uvicorn

app = FastAPI()
getAll = Server.decorator_getAll

@app.get('/')
def index():
  return 'index page'

@app.get('/position')
@getAll
def index(data):
  return data

if __name__ == '__main__':
  uvicorn.run(app, host='127.0.0.1', port=8000)
